package com.foton.designmodel.decorator.tea;

import com.foton.designmodel.decorator.tea.impl.DecoratorTea;
import com.foton.designmodel.decorator.tea.impl.IceTea;
import com.foton.designmodel.decorator.tea.impl.MilkTea;
import com.foton.designmodel.decorator.tea.impl.PeachTea;

public class DecoratorTeaTest {

    public static void main(String[] args) {

       Tea iceTea= new IceTea();

        DecoratorTea milkTea = new MilkTea();
        milkTea.setTea(iceTea);

        DecoratorTea peachTea = new PeachTea();
        peachTea.setTea(milkTea);
        peachTea.marking();



    }

}
